-- GENERATED SPELL FOR [Bellygrub] --


function spell0_345(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_345', 3000, 1)
end

function spell1_345(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_345', 549, 1)
end

function Sorts_345(pUnit, Event)
local choix_sorts_345 = math.random(0, 1)
if choix_sorts_345 == 0 then
pUnit:RegisterEvent('spell0_345', 1, 1)
end
if choix_sorts_345 == 1 then
pUnit:RegisterEvent('spell1_345', 1, 1)
end
end

function mob345_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_345', math.random(1500, 3000), 1)
end

function mob345_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob345_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob345_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(345, 1, 'mob345_Action')
RegisterUnitEvent(345, 2, 'mob345_Leave')
RegisterUnitEvent(345, 3, 'mob345_Kill')
RegisterUnitEvent(345, 4, 'mob345_Die')
